Skip to content

Conversation

@distantnative
Copy link
Member

@distantnative distantnative commented Sep 28, 2025

Description

Todo

Next

Changelog

✨ Enhancements

  • New FieldClass::validate() method that runs all validations.
  • New FieldClass::factory() method, which is used in Fields to create instances from arrays
  • New Kirby\Form\Mixin\Siblings trait

♻️ Refactored

  • Use named props instead of arrays in all Field classes

🚨 Breaking changes

  • FieldClass::setSiblings() is now public and siblings are injected after the construction. Setters can no longer rely on the siblings collection. Use getters or overwrite the ::setModel method if necessary.
  • FieldClass::setModel() is now public and the model is injected after the construction. Setters can no longer rely on the model. Use getters or overwrite the ::setModel method if necessary.
  • Field classes no longer define the value in the constructor. Use FIeldClass::fill() instead to provide an initial value.

Docs

For review team

  • Add changes & docs to release notes draft in Notion

@distantnative distantnative added needs: discussion 🗣 Requires further discussion to proceed needs: help 🙏 Really needs some help on this labels Oct 7, 2025
@bastianallgeier bastianallgeier force-pushed the v6/refact/fields-named-args branch 2 times, most recently from 560bfcd to f9e6fd7 Compare November 20, 2025 12:57
@bastianallgeier bastianallgeier force-pushed the v6/refact/fields-named-args branch from f9e6fd7 to 14fb5c2 Compare November 21, 2025 09:51
@distantnative distantnative force-pushed the v6/refact/fields-named-args branch 2 times, most recently from 5dd5edd to 48baca2 Compare November 21, 2025 18:04
@distantnative distantnative removed needs: discussion 🗣 Requires further discussion to proceed needs: help 🙏 Really needs some help on this labels Nov 21, 2025
@bastianallgeier bastianallgeier force-pushed the v6/refact/fields-named-args branch from 48baca2 to ba4bdc3 Compare November 22, 2025 12:12
@bastianallgeier bastianallgeier changed the base branch from v6/develop to v6/refact/field-mixins November 22, 2025 12:13
@bastianallgeier bastianallgeier force-pushed the v6/refact/fields-named-args branch 4 times, most recently from d341043 to df26bc3 Compare November 22, 2025 12:20
@bastianallgeier bastianallgeier force-pushed the v6/refact/fields-named-args branch from 8016b5b to 9b25a7c Compare November 24, 2025 10:56
@bastianallgeier bastianallgeier force-pushed the v6/refact/fields-named-args branch from 9b25a7c to a1e719b Compare November 24, 2025 15:20
@bastianallgeier bastianallgeier force-pushed the v6/refact/fields-named-args branch from a1e719b to f244daf Compare November 24, 2025 15:27
@bastianallgeier bastianallgeier changed the title refact!: FieldClass with named props refact!: FieldClass with named props (Fields PR 2) Nov 24, 2025
@bastianallgeier bastianallgeier changed the title refact!: FieldClass with named props (Fields PR 2) (Fields PR 2) refact!: FieldClass with named props Nov 24, 2025
Base automatically changed from v6/refact/field-mixins to v6/fields November 24, 2025 16:57
@bastianallgeier bastianallgeier marked this pull request as ready for review November 24, 2025 17:09
@bastianallgeier
Copy link
Member

@distantnative it's your PR, but I think you should still have another look after my changes.

@distantnative distantnative merged commit 551af4a into v6/fields Nov 24, 2025
11 checks passed
@distantnative distantnative deleted the v6/refact/fields-named-args branch November 24, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants